const VueLoaderPlugin = require('vue-loader/lib/plugin')
const path = require('path')
module.exports = {
  module: {
    rules: [
      {
        test: /\.vue$/,
        use: [
          {
            loader: 'vue-loader',
            options: {
              compilerOptions: {
                preserveWhitespace: false
              }
            }
          }
        ]
      }
    ]
  },
  resolve: {
    extensions: [ '.vue' ],
    alias: {
      '@': path.resolve(__dirname, '../../src'),
      '@m': path.resolve(__dirname, '../../src/main'),
      '@r': path.resolve(__dirname, '../../src/renderer')
    }
  },
  plugins: [
    new VueLoaderPlugin()
  ]
}
